package com.pro.beans;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
public class News{
		private Integer id;
		public Integer getId(){
			return this.id;
		}
		public void setId(Integer id){
			this.id=id;
		}
		private String name;
		public String getName(){
			return this.name;
		}
		public void setName(String name){
			this.name=name;
		}
		private String text;
		public String getText(){
			return this.text;
		}
		public void setText(String text){
			this.text=text;
		}
		private Date date;
		@JsonFormat(pattern="MM-dd")
		@DateTimeFormat(pattern="MM-dd")
		public Date getDate(){
			return this.date;
		}
		public void setDate(Date date){
			this.date=date;
		}
		private Integer type;
		public Integer getType(){
			return this.type;
		}
		public void setType(Integer type){
			this.type=type;
		}
		private Integer del_flag;
		public Integer getDel_flag(){
			return this.del_flag;
		}
		public void setDel_flag(Integer del_flag){
			this.del_flag=del_flag;
		}
	}